import request from '../utils/request';

export const ProductShow = query => {
    return request({
        url: 'ShowProduct',
        method: 'get',
        params: query
    });
};
export const ProductClassShow = query => {
    return request({
        url: 'ShowProductClass',
        method: 'get',
        params: query
    });
};

export const ProductSelect = query => {
    return request({
        url: 'SelectProductById?id='+query,
        method: 'get',
        params: query
    });
};
export const AddProduct = data => {
    return request({
        url: 'InsertProduct',
        method: 'post',
        data: data//get :param参数
    });
};